﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000DA9 RID: 3497
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class QuitRogueScRsp : IMessage<QuitRogueScRsp>, IMessage, IEquatable<QuitRogueScRsp>, IDeepCloneable<QuitRogueScRsp>, IBufferMessage
	{
		// Token: 0x17002C70 RID: 11376
		// (get) Token: 0x06009D00 RID: 40192 RVA: 0x001A4407 File Offset: 0x001A2607
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<QuitRogueScRsp> Parser
		{
			get
			{
				return QuitRogueScRsp._parser;
			}
		}

		// Token: 0x17002C71 RID: 11377
		// (get) Token: 0x06009D01 RID: 40193 RVA: 0x001A440E File Offset: 0x001A260E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return QuitRogueScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002C72 RID: 11378
		// (get) Token: 0x06009D02 RID: 40194 RVA: 0x001A4420 File Offset: 0x001A2620
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return QuitRogueScRsp.Descriptor;
			}
		}

		// Token: 0x06009D03 RID: 40195 RVA: 0x001A4427 File Offset: 0x001A2627
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public QuitRogueScRsp()
		{
		}

		// Token: 0x06009D04 RID: 40196 RVA: 0x001A4430 File Offset: 0x001A2630
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public QuitRogueScRsp(QuitRogueScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.rogueFinishInfo_ = ((other.rogueFinishInfo_ != null) ? other.rogueFinishInfo_.Clone() : null);
			this.rogueGameInfo_ = ((other.rogueGameInfo_ != null) ? other.rogueGameInfo_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06009D05 RID: 40197 RVA: 0x001A4498 File Offset: 0x001A2698
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public QuitRogueScRsp Clone()
		{
			return new QuitRogueScRsp(this);
		}

		// Token: 0x17002C73 RID: 11379
		// (get) Token: 0x06009D06 RID: 40198 RVA: 0x001A44A0 File Offset: 0x001A26A0
		// (set) Token: 0x06009D07 RID: 40199 RVA: 0x001A44A8 File Offset: 0x001A26A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17002C74 RID: 11380
		// (get) Token: 0x06009D08 RID: 40200 RVA: 0x001A44B1 File Offset: 0x001A26B1
		// (set) Token: 0x06009D09 RID: 40201 RVA: 0x001A44B9 File Offset: 0x001A26B9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueFinishInfo RogueFinishInfo
		{
			get
			{
				return this.rogueFinishInfo_;
			}
			set
			{
				this.rogueFinishInfo_ = value;
			}
		}

		// Token: 0x17002C75 RID: 11381
		// (get) Token: 0x06009D0A RID: 40202 RVA: 0x001A44C2 File Offset: 0x001A26C2
		// (set) Token: 0x06009D0B RID: 40203 RVA: 0x001A44CA File Offset: 0x001A26CA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueInfo RogueGameInfo
		{
			get
			{
				return this.rogueGameInfo_;
			}
			set
			{
				this.rogueGameInfo_ = value;
			}
		}

		// Token: 0x06009D0C RID: 40204 RVA: 0x001A44D3 File Offset: 0x001A26D3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as QuitRogueScRsp);
		}

		// Token: 0x06009D0D RID: 40205 RVA: 0x001A44E4 File Offset: 0x001A26E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(QuitRogueScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && object.Equals(this.RogueFinishInfo, other.RogueFinishInfo) && object.Equals(this.RogueGameInfo, other.RogueGameInfo) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06009D0E RID: 40206 RVA: 0x001A4548 File Offset: 0x001A2748
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.rogueFinishInfo_ != null)
			{
				num ^= this.RogueFinishInfo.GetHashCode();
			}
			if (this.rogueGameInfo_ != null)
			{
				num ^= this.RogueGameInfo.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06009D0F RID: 40207 RVA: 0x001A45B3 File Offset: 0x001A27B3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06009D10 RID: 40208 RVA: 0x001A45BB File Offset: 0x001A27BB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06009D11 RID: 40209 RVA: 0x001A45C4 File Offset: 0x001A27C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.rogueFinishInfo_ != null)
			{
				output.WriteRawTag(26);
				output.WriteMessage(this.RogueFinishInfo);
			}
			if (this.rogueGameInfo_ != null)
			{
				output.WriteRawTag(90);
				output.WriteMessage(this.RogueGameInfo);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06009D12 RID: 40210 RVA: 0x001A463C File Offset: 0x001A283C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.rogueFinishInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.RogueFinishInfo);
			}
			if (this.rogueGameInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.RogueGameInfo);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06009D13 RID: 40211 RVA: 0x001A46AC File Offset: 0x001A28AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(QuitRogueScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.rogueFinishInfo_ != null)
			{
				if (this.rogueFinishInfo_ == null)
				{
					this.RogueFinishInfo = new RogueFinishInfo();
				}
				this.RogueFinishInfo.MergeFrom(other.RogueFinishInfo);
			}
			if (other.rogueGameInfo_ != null)
			{
				if (this.rogueGameInfo_ == null)
				{
					this.RogueGameInfo = new RogueInfo();
				}
				this.RogueGameInfo.MergeFrom(other.RogueGameInfo);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06009D14 RID: 40212 RVA: 0x001A4740 File Offset: 0x001A2940
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06009D15 RID: 40213 RVA: 0x001A474C File Offset: 0x001A294C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 26U)
				{
					if (num != 90U)
					{
						if (num != 96U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.Retcode = input.ReadUInt32();
						}
					}
					else
					{
						if (this.rogueGameInfo_ == null)
						{
							this.RogueGameInfo = new RogueInfo();
						}
						input.ReadMessage(this.RogueGameInfo);
					}
				}
				else
				{
					if (this.rogueFinishInfo_ == null)
					{
						this.RogueFinishInfo = new RogueFinishInfo();
					}
					input.ReadMessage(this.RogueFinishInfo);
				}
			}
		}

		// Token: 0x04003CA3 RID: 15523
		private static readonly MessageParser<QuitRogueScRsp> _parser = new MessageParser<QuitRogueScRsp>(() => new QuitRogueScRsp());

		// Token: 0x04003CA4 RID: 15524
		private UnknownFieldSet _unknownFields;

		// Token: 0x04003CA5 RID: 15525
		public const int RetcodeFieldNumber = 12;

		// Token: 0x04003CA6 RID: 15526
		private uint retcode_;

		// Token: 0x04003CA7 RID: 15527
		public const int RogueFinishInfoFieldNumber = 3;

		// Token: 0x04003CA8 RID: 15528
		private RogueFinishInfo rogueFinishInfo_;

		// Token: 0x04003CA9 RID: 15529
		public const int RogueGameInfoFieldNumber = 11;

		// Token: 0x04003CAA RID: 15530
		private RogueInfo rogueGameInfo_;
	}
}
